package org.fastfaild.linked_list._test_;

import org.fastfaild.linked_list.LinkedList;
import org.fastfaild.linked_list.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * className: LinkedListTest
 * Description:
 * date: 2022/12/2 14:00
 *
 * @author fanpeng
 * @version 1.0
 */
public class LinkedListTest {

    private final Logger logger = LoggerFactory.getLogger(LinkedListTest.class);

    public static void main(String[] args) {
        List<String> list = new LinkedList<>();
        // 添加元素
        list.add("a");
        list.addFirst("b");
        list.addLast("c");
        // 打印列表
        list.printLinkList();
        // 头插元素
        list.addFirst("d");
        // 删除元素
        list.remove("b");
        // 打印列表
        list.printLinkList();

    }
}
